package com.witdata.common.mapper;

import com.witdata.common.domain.dto.RoleDto;
import com.witdata.mysql.domain.entity.TRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleMapper {

    RoleMapper INSTANCE = Mappers.getMapper(RoleMapper.class);

    RoleDto toRoleDto(TRole tRole);

    TRole toTRole(RoleDto RoleDto);

    List<RoleDto> toRoleDtoList(List<TRole> tRoleList);

}
